package com.crm.service.sys.permissionManagement;

import com.crm.model.entity.sys.permissionManagement.SysPermissionGroup;

import java.util.List;

/**
 * @Author yincuimei
 * @Date 2020/12/4 15:25
 */
public interface SysPermissionGroupDbService {

    /**
     * 新增一条权限组数据
     *
     * @param sysPermissionGroup ---权限组信息
     * @return
     */
    Boolean insertSysPermissionGroup(SysPermissionGroup sysPermissionGroup);


    List<SysPermissionGroup> selectPermissionManagementInfo(String searchInfo);

    /**
     * 根据权限组ID删除权限组
     * @param permissionGroupId
     * @return
     */
    Boolean deleteSysPermissionGroupById(String permissionGroupId);

    /**
     * 根据权限组ID查询权限组
     * @return
     */
    SysPermissionGroup selectSysPermissionGroupById(String permissionGroupId);

    /**
     * 更新权限组数据
     * @Author pym
     * @Date  2021/9/1 10:26
     * @param sysPermissionGroup 权限组信息
     * @return {@link {java.lang.Boolean}}
     */
    Boolean updateSysPermissionGroup(SysPermissionGroup sysPermissionGroup);

}
